package cn.com.yx.ms.service;


import cn.com.yx.ms.application.web.ApiPager;
import cn.com.yx.ms.application.web.ApiQueryBase;
import cn.com.yx.ms.domain.TestModel;
import cn.com.yx.ms.domain.TreeModel;
import cn.com.yx.ms.domain.dbmodel.SysLog;
import org.springframework.cache.annotation.Cacheable;

import java.io.File;
import java.util.LinkedList;
import java.util.List;

/**
 * 应用中心接口
 */
public interface ILogService {

    SysLog findOne(String id);

    int insert(SysLog sysLog);

    int delete(String id);

    int update(SysLog sysLog);

    List<SysLog> find(ApiQueryBase query);

    int log(String type,String module,String content,String userid);

    List<TreeModel> findCommandPusthLogs(String path);

    List<TreeModel> findComPushLogs(ApiQueryBase query);

    List<String>  findLogBypath(String path);

    void ergodic2(File file,List<TreeModel> stringList);

}